//
//  ImageProcessViewController.h
//  PixelTest
//
//  Created by Han Guoxiang on 12-7-12.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//
/*
 程序的主视图控制器
 */

//4种相框大小
#define kRectSlider CGRectMake(95, 109, 129, 191)
#define kRectSliderScale CGRectMake(190, 228, 262, 400)
#define kRectNegative CGRectMake(95, 114, 131, 200)
#define kRect35 CGRectMake(4, 28, 268, 369)
#define kRect46 CGRectMake(0, 0, 320, 480)

//相框大小枚举
typedef enum {
    PhotoSlidersType = 0,           
    PhotoNegativeType = 1,          
    Photo35Type=2,
    Photo46Type=3                   
    }
PhotoType;

#import <UIKit/UIKit.h>
#import "ImageProcessedProtocal.h"
#import <MessageUI/MessageUI.h>
#import "MBProgressHUD.h"
#import "FBConnect.h"

#define FB_APP_KEY @"326913694064646" //自己申请的
#define FB_SEC_KEY @"2a51e2131cac0dde424c0588416c5fc1" //自己申请的

@class ImageWorkedViewController;

@interface ImageProcessViewController : UIViewController<UIImagePickerControllerDelegate,UINavigationControllerDelegate,ImageProcessedProtocal,MFMailComposeViewControllerDelegate,MBProgressHUDDelegate,FBRequestDelegate,FBSessionDelegate,FBDialogDelegate>
{
    PhotoType photoType;
    int status;//facebook登陆状态
}

@property (nonatomic, retain) NSArray *permissions;
@property(nonatomic,retain)UIButton *btnClose;      //关闭图片的按钮
@property(nonatomic,retain)UIImageView *mainImgView;//主视图显示图片的控件
@property(nonatomic,retain)MBProgressHUD *hudView;
@property(nonatomic,retain)UIButton *btnSave;
@property(nonatomic,retain)UIButton *btnEmail;
@property(nonatomic,retain)UIButton *btnFacebook;
@property(nonatomic,retain)UIScrollView *mainScrollView;//存放拍照后的图片的容器
@property(nonatomic,retain)ImageWorkedViewController *imgWorkedViewController;//处理图片rgb和亮度的控制器
@property(nonatomic,retain) UIImageView *cameraOverLayer;//拍照时的相框

-(void)uploadPhoto;
@end
